package lab02;

public class Zelos extends Boss implements  EnrichBlood{
    public Zelos() {
    }
    public Zelos(String name,int hitPoints) {
        super();
    }

    public void move() {
        System.out.println("Zelos飞行移动");
    }
    public void enrichBlood() {
        if (getHitPoints() <= 10 && getHitPoints() > 0) {
            int hitPoints = getHitPoints();
            setHitPoints( hitPoints += 30);
            System.out.println("Zelos 开始补血,当前血量为:" + getHitPoints());
        }
    }
}